package com.yic.module.base.enums;

import com.yic.framework.common.exception.ErrorCode;

/**
 * Bpm 错误码枚举类
 * <p>
 * bpm 系统，使用 1_010_000_000 段
 */
public interface ErrorCodeConstants {

    // ==========  工厂信息 模块 1_010_000_000 ==========
    ErrorCode FACTORY_NOT_EXISTS = new ErrorCode(1_010_000_000, "工厂信息不存在");
    ErrorCode FACTORY_NAME_EXISTS = new ErrorCode(1_010_000_001, "工厂名称已存在");
    ErrorCode FACTORY_CODE_EXISTS = new ErrorCode(1_010_000_002, "工厂代码已存在");

    // ==========  单位信息 模块 1_010_001_000 ==========
    ErrorCode UNIT_NOT_EXISTS = new ErrorCode(1_010_001_000, "单位不存在");
    ErrorCode UNIT_NAME_EXISTS = new ErrorCode(1_010_001_001, "单位名称已存在");
    ErrorCode UNIT_CODE_EXISTS = new ErrorCode(1_010_001_002, "单位代码已存在");

    // ==========  产品分类 模块 1_010_002_000 ==========
    ErrorCode ITEM_CATEGORY_NOT_EXISTS = new ErrorCode(1_010_002_000, "产品分类不存在");
    ErrorCode ITEM_CATEGORY_PARENT_ERROR = new ErrorCode(1_010_002_001, "不能设置自己为父分类");
    ErrorCode ITEM_CATEGORY_PARENT_NOT_EXITS = new ErrorCode(1_010_002_002,"父级分类不存在");
    ErrorCode ITEM_CATEGORY_NOT_ENABLE = new ErrorCode(1_010_002_003, "分类({})不处于开启状态，不允许选择");
    ErrorCode ITEM_CATEGORY_NAME_DUPLICATE = new ErrorCode(1_010_002_004, "已经存在该名字的分类");
    ErrorCode ITEM_CATEGORY_CODE_DUPLICATE = new ErrorCode(1_010_002_005, "已经存在该代码的分类");
    ErrorCode ITEM_CATEGORY_EXITS_CHILDREN = new ErrorCode(1_010_002_006, "存在子分类，无法删除");
    ErrorCode ITEM_CATEGORY_PARENT_IS_CHILD = new ErrorCode(1_010_002_007, "不能设置自己的子分类为父分类");
    ErrorCode ITEM_CATEGORY_ITEM_EXISTS = new ErrorCode(1_010_002_008, "当前分类下存在产品，无法删除");

    // ========== 产品通用信息 模块 1_010_003_000 ==========
    ErrorCode ITEM_NOT_EXISTS = new ErrorCode(1_010_003_000, "产品通用信息不存在");
    ErrorCode ITEM_NAME_EXISTS = new ErrorCode(1_010_003_001, "产品名称已存在");
    ErrorCode ITEM_CODE_EXISTS = new ErrorCode(1_010_003_002, "产品代码已存在");


    // ========== 工作中心信息 模块 1_010_004_000 ==========
    ErrorCode CENTER_NOT_EXISTS = new ErrorCode(1_010_004_000, "工作中心不存在");
    ErrorCode CENTER_NAME_EXISTS = new ErrorCode(1_010_004_001, "工作中心名称已存在");
    ErrorCode CENTER_CODE_EXISTS = new ErrorCode(1_010_004_002, "工作中心代码已存在");

    // ========== 品牌信息 模块 1_010_005_000 ==========
    ErrorCode BRAND_NOT_EXISTS = new ErrorCode(1_010_005_000, "品牌信息不存在");
    ErrorCode BRAND_NAME_EXISTS = new ErrorCode(1_010_005_001, "品牌名称已存在");
    ErrorCode BRAND_CODE_EXISTS = new ErrorCode(1_010_005_002, "品牌代码已存在");

    // ========== 供应商信息 模块 1_010_006_000 ==========
    ErrorCode SUPPLIER_NOT_EXISTS = new ErrorCode(1_010_006_000, "供应商信息不存在");
    ErrorCode SUPPLIER_NAME_EXISTS = new ErrorCode(1_010_006_001, "供应商名称已存在");
    ErrorCode SUPPLIER_CODE_EXISTS = new ErrorCode(1_010_006_002, "供应商代码已存在");

    // ========== 生产车间 模块 1_010_007_000 ==========
    ErrorCode WORKSHOP_NOT_EXISTS = new ErrorCode(1_010_007_000, "生产车间信息不存在");
    ErrorCode WORKSHOP_NAME_EXISTS = new ErrorCode(1_010_007_001, "生产车间名称已存在");
    ErrorCode WORKSHOP_CODE_EXISTS = new ErrorCode(1_010_007_002, "生产车间代码已存在");

    // ========== 工作中心人员信息 模块 1_010_008_000 ==========
    ErrorCode CENTER_USER_NOT_EXISTS = new ErrorCode(1_010_008_000, "人员配置信息不存在");
    ErrorCode CENTER_USER_EXISTS = new ErrorCode(1_010_008_001, "人员配置信息已存在，不允许重复绑定");

    // ========== ERP工作中心映射 模块 1_010_009_000 ==========
    ErrorCode ERP_CENTER_MAPPING_NOT_EXISTS = new ErrorCode(1_010_009_000, "ERP工作中心映射关系不存在");


}

